package com.by.controller;

import com.by.common.bean.ResultBean;
import com.by.common.controller.BaseController;
import com.by.service.EnquiryDetailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/v1")
@Api(tags = "询价明细")
public class EnquiryDetailController extends BaseController {
    @Autowired
    EnquiryDetailService enquiryDetailService;

    @ApiOperation("eid查询价明细")
    @GetMapping("/enquiryDetail/query")
    public ResultBean queryEnquiryDetail(@RequestParam(name = "eid") Integer eid) {
        List<Map> res = enquiryDetailService.queryById(eid);
        return success("询价详情列表",res);
    }

}
